import random

fo = open("number.txt", "a")
for i in range(1, 3000):
    num = random.randint(1, 1000)
    print("%d" % (num), file = fo)
    #fo.write(random.randint(4, 100))
fo.close()
# print("%3d %0.2f" % (year, principal), file = f)